package com.song.mapper;

import com.song.domain.Material;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MaterialMapper {
    Material selectById(@Param("id") Long id);
    List<Material> list(@Param("offset") int offset, @Param("limit") int limit, @Param("category") String category);
    int count(@Param("category") String category);
    int insert(Material material);
    int update(Material material);
    int delete(@Param("id") Long id);
}